package com.polymathcoder.dpastry.core.network;

import com.polymathcoder.dpastry.dPastry;
import org.jboss.netty.channel.*;

/**
 * Created by IntelliJ IDEA.
 * User: Drew
 * Date: Jul 7, 2010
 * Time: 10:41:23 PM
 * To change this template use File | Settings | File Templates.
 */
public class TcpTransportHandler extends SimpleChannelHandler {

    //at the moment, this is configured to be unique for each channel, so information
    //can be stored here in instance fields!

    protected dPastry.ServiceHandleImpl<TcpTransportService> parent;

    public TcpTransportHandler(dPastry.ServiceHandleImpl<TcpTransportService> parent) {
        this.parent = parent;
    }

    @Override
    public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
        super.messageReceived(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {
        super.exceptionCaught(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.channelOpen(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void channelBound(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.channelBound(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.channelConnected(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void channelInterestChanged(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.channelInterestChanged(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.channelDisconnected(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void channelUnbound(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.channelUnbound(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.channelClosed(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void writeComplete(ChannelHandlerContext ctx, WriteCompletionEvent e) throws Exception {
        super.writeComplete(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void childChannelOpen(ChannelHandlerContext ctx, ChildChannelStateEvent e) throws Exception {
        super.childChannelOpen(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void childChannelClosed(ChannelHandlerContext ctx, ChildChannelStateEvent e) throws Exception {
        super.childChannelClosed(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void writeRequested(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
        super.writeRequested(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void bindRequested(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.bindRequested(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void connectRequested(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.connectRequested(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void setInterestOpsRequested(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.setInterestOpsRequested(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void disconnectRequested(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.disconnectRequested(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void unbindRequested(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.unbindRequested(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }

    @Override
    public void closeRequested(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        super.closeRequested(ctx, e);    //To change body of overridden methods use File | Settings | File Templates.
    }
}
